package com.hdsx.design.softdesign.principle;

import com.hdsx.design.softdesign.openclose.principle.ICourse;

/**
 * @author 占贤银
 * time 2024/8/21 17:23
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class JavaCourse implements ICourse {
    private String id;
    private String name;
    private Double price;

    public JavaCourse(String id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
